﻿using WRJClient.Common;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace WRJClient.Net
{
    public class ZoneMessageProcessor : IMessageProcessor
    {
        public void Process(TopicData topicData)
        {

            switch (topicData.eventId)
            {
                case 1://空域新建事件
                    ZoneAddProcess(topicData);
                    break;
                case 2://空域删除事件
                    ZoneDelProcess(topicData);
                    break;
                case 3://空域修改事件
                    ZoneUpdateProcess(topicData);
                    break;
                default:
                    MessageManager.Instance.Error(string.Format("未知空域主题[{0}]", topicData.eventId));
                    break;
            }

        }

        private void ZoneAddProcess(TopicData topicData)
        {
            //MessageManager.Instance.Info(string.Format("新建空域[{0}]!", topicData.id));
        }
        private void ZoneDelProcess(TopicData topicData)
        {
            //MessageManager.Instance.Info(string.Format("更新空域[{0}]!", topicData.id));
        }
        private void ZoneUpdateProcess(TopicData topicData)
        {
            //MessageManager.Instance.Info(string.Format("删除空域[{0}]!", topicData.id));
        }
    }
}
